package com.online.onlineshop.services;

import com.online.onlineshop.entity.Address;

import java.util.List;

public interface ForAddressService {

    /**
     * @param aid 地址id
     * @param uid 用户id
     * @return
     */
    Address getByAid(Integer aid, Integer uid);

    /**
     * @param uid      用户id
     * @param userName 用户名
     * @param address  地址实体类
     */
    void putNewAddress(Integer uid, String userName, Address address);

    List<Address> getAddressByUid(Integer uid);

    /**
     * @param aid 地址id
     * @param uid 用户id
     */
    void deleteAddress(Integer aid, Integer uid);


}
